<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"/>
    <meta name="viewport"
          content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
    <meta name="format-detection" content="telephone=no, email=no"/>
    <meta name="apple-mobile-web-app-capable" content="yes"/>
    <meta name="apple-mobile-web-app-status-bar-style" content="black"/>
    <title>Title</title>
</head>
<body>
小明 今年18岁 性别男 有男朋友 男朋友会说话 说什么自己定
</body>
<script>
    function aaa(name, age, sex, friend, say) {
        this.name = name;
        this.age = age;
        this.sex = sex;
        this.friend = friend;
        this.say = say;
    }

    var obj = new aaa("小明", "18", "男", "男朋友", "你不爱我了");
    alert(obj.name + "今年" + obj.age + "了," + "性别" + obj.sex + ",有一个" + obj.friend + ",男朋友会说" + obj.say);

</script>
</html>